package com.yansu.own.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yansu.own.common.dtos.ResponseResult;
import com.yansu.own.entity.dto.SysMaterialDto;
import com.yansu.own.entity.pojo.SysMaterial;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface SysMaterialService extends IService<SysMaterial> {
    /**
     * 上传素材图片
     */
    ResponseResult<SysMaterial> uploadPicture(MultipartFile multipartFile);

    /**
     * 查看素材列表
     */
    ResponseResult<List<SysMaterial>> materialList(SysMaterialDto dto);
}
